﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IChessEngine;

namespace ChessEngine.PositionTree
{
    public class ChsPositionRepository : IChsPositionRepository
    {
        private Dictionary<Guid, IChsGamePosition> repository = null;
        public ChsPositionRepository()
        {
            repository = new Dictionary<Guid, IChsGamePosition>();
        }
        public IChsGamePosition GetPosition(Guid guid)
        {
            return repository[guid];
        }
        public void Add(IChsGamePosition position)
        {
            repository[position.Id] = position;
        }
    }
}
